package com.qf.model.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.io.Serializable;

/**
 * (OutConsumption)实体类
 *
 * @author ZhiHuiJun
 * @since 2024-04-30 09:30:48
 */
public class OutConsumption implements Serializable {
    private static final long serialVersionUID = 603073826395982487L;
/**
     * 门诊消费表id
     */
    private Integer id;
/**
     * 订单号
     */
    private String orderNumber;
/**
     * 来源
     */
    private String source;
/**
     * 业务类型，门诊消费
     */
    private String businessType;
/**
     * 时间，创建时间
     */
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
//  @JsonFormat  1将接收得到的json数据中对应birthday 时间转换 java中Date
//               2.处理器方法返回json数据时 将java中Date  转换为对应的字符串时间   yyyy-MM-dd
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;
/**
     * 费用类型、西药费、中药费
     */
    private String expenseType;
/**
     * 支付方式、余额
     */
    private String paymentMethod;
/**
     * 支付金额
     */
    private Double amountPaid;
/**
     * 缴费状态
     */
    private String payStatus;
/**
     * 患者id
     */
    private Integer patientId;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getOrderNumber() {
        return orderNumber;
    }

    public void setOrderNumber(String orderNumber) {
        this.orderNumber = orderNumber;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public String getBusinessType() {
        return businessType;
    }

    public void setBusinessType(String businessType) {
        this.businessType = businessType;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getExpenseType() {
        return expenseType;
    }

    public void setExpenseType(String expenseType) {
        this.expenseType = expenseType;
    }

    public String getPaymentMethod() {
        return paymentMethod;
    }

    public void setPaymentMethod(String paymentMethod) {
        this.paymentMethod = paymentMethod;
    }

    public Double getAmountPaid() {
        return amountPaid;
    }

    public void setAmountPaid(Double amountPaid) {
        this.amountPaid = amountPaid;
    }

    public String getPayStatus() {
        return payStatus;
    }

    public void setPayStatus(String payStatus) {
        this.payStatus = payStatus;
    }

    public Integer getPatientId() {
        return patientId;
    }

    public void setPatientId(Integer patientId) {
        this.patientId = patientId;
    }

}

